// -------------------账户管理-------------------
import fetch from '../config/fetch'

/**
 * 获取平台基础信息统计
 */
export const getPlatform = () => fetch({
  url: '/statistics/v1/platform',
  method: "get",
  data: {}
});

/**
 * 获取某企业的基础信息统计
 */
export const getPlatformById = (id) => fetch({
  url: '/statistics/v1/' + id,
  method: "get",
  data: {}
});

/**
 * 获取所有支付记录
 */
export const getAccountCourse = () => fetch({
  url: '/statistics/v1/seven/countCourse',
  method: "get",
  data: {}
});

/**
 * 统计平台最近七天用户-每天增长情况
 */
export const getUser = () => fetch({
  url: '/statistics/v1/seven/countUser',
  method: "get",
  data: {}
});

/**
 * 统计平台最近七天收入-每天增长情况
 */
export const getSumMoney = () => fetch({
  url: '/statistics/v1/seven/sumMoney',
  method: "get",
  data: {}
});

